﻿using GloboTicketAdmin.Mobile.Models;
using GloboTicketAdmin.Mobile.Repositories;
using GloboTicketAdmin.Mobile.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GloboTicketAdmin.Mobile.Services
{
    public class CategoryService : ICategoryService
    {
        private readonly ICategoryRepository _categoryRepository;

        public CategoryService(ICategoryRepository categoryRepository)
        {
            _categoryRepository = categoryRepository;
        }


        async Task<List<CategoryModel>> ICategoryService.GetCategories()
        {
            return await _categoryRepository.GetCategorys();
        }


    }
}
